package com.ys.sboot.security.controller;

import com.ys.sboot.security.dto.UserInfo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author
 * @version 1.0 2016/10/10
 * @description
 */
@RestController
@RequestMapping(value = "/user")
public class UserController {


    @GetMapping(value = "/getUserInfo")
    public UserInfo getUserInfo(UserInfo user) {
        UserInfo userInfo = new UserInfo();
        userInfo.setUserName("LIQIN");
        userInfo.setPassword("123");
        return userInfo;
    }
}
